-- GENERATED SPELL FOR [Razortalon] --


function spell0_8210(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8210', 15000, 1)
end

function spell1_8210(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(13584,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8210', 564, 1)
end

function spell2_8210(pUnit, Event) --@Tendon Rip,n/a--
pUnit:FullCastSpellOnTarget(3604,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8210', 8000, 1)
end

function Sorts_8210(pUnit, Event)
local choix_sorts_8210 = math.random(0, 2)
if choix_sorts_8210 == 0 then
pUnit:RegisterEvent('spell0_8210', 1, 1)
end
if choix_sorts_8210 == 1 then
pUnit:RegisterEvent('spell1_8210', 1, 1)
end
if choix_sorts_8210 == 2 then
pUnit:RegisterEvent('spell2_8210', 1, 1)
end
end

function mob8210_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8210', math.random(1500, 3000), 1)
end

function mob8210_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8210_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8210_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8210, 1, 'mob8210_Action')
RegisterUnitEvent(8210, 2, 'mob8210_Leave')
RegisterUnitEvent(8210, 3, 'mob8210_Kill')
RegisterUnitEvent(8210, 4, 'mob8210_Die')
